﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addnews.aspx.cs" Inherits="WebSite.admin.title.addnews" %>

<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>
<%@ Register Src="../languages.ascx" TagName="head" TagPrefix="uc1" %>
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
     <title>文章管理</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
	<script language="javascript">
	    parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>文章管理::添加文章。"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
    <script language="JavaScript" src="../../js/function.js"></script>
    <script language="javascript">
        function CheckFrm() {
            var obj = 'newsname,typeid';
            var objt = '1,1';
            var msg = '文章标题,文章分类';
            var chks = chk(form1, obj, objt, msg)
            if (!chks) {
                return false;
            }
        }
    </script>
</head>
<body bgcolor="#F1F4F7">
    <form id="form1" runat="server">
    <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <%if (Request.QueryString["nid"] != null){ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#C9D2DA"><a href="addnews.aspx?nid=<%=Request.QueryString["nid"]%>" class="menu02">通用信息</a></td>
      <td bgcolor="#E2E7EB"><a href="addnews02.aspx?nid=<%=Request.QueryString["nid"]%>">文章内容</a></td>
      <td bgcolor="#E2E7EB"><a href="addnews03.aspx?nid=<%=Request.QueryString["nid"]%>">关联商品</a></td>
    </tr>
  </table>
  <%}else{ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#C9D2DA"><a href="addnews.aspx" class="menu02">通用信息</a></td>
      <td bgcolor="#E2E7EB"><a href="addnews02.aspx">文章内容</a></td>
      <td bgcolor="#E2E7EB"><a href="addnews03.aspx">关联商品</a></td>
    </tr>
  </table>
  <%} %>
  <br />
 
  <table width="90%" border="0" cellpadding="5" cellspacing="0">
    <tr id="cn" style="display:;" runat="server">
      <td align="right" class="title01"  style="width: 20%">文章标题：</td>
      <td align="left"><input size="30" name="newsname" id="newsname" runat="server" />*</td>
    </tr>
    
    <tr id="typecn"  style="display:;" runat="server">
      <td align="right" class="title01"  style="width: 20%">文章分类：</td>
      <td align="left"><asp:DropDownList ID="typeid" runat="server">
                    <asp:ListItem Text="选择产品类别" Value="0"></asp:ListItem>
                    </asp:DropDownList>
        *</td>
    </tr>
    
    <!--tr>
      <td align="right" class="title01"  style="width: 20%">文章重要性：</td>
      <td align="left">
          <asp:RadioButtonList ID="ishot" runat="server" RepeatColumns="2">
           <asp:ListItem Value="0" Selected="True">普通</asp:ListItem>
           <asp:ListItem Value="1">置顶</asp:ListItem>
          </asp:RadioButtonList>
      </td>
    </tr-->
    <tr>
      <td align="right" class="title01"  style="width: 20%">排序：</td>
      <td align="left"><input name="newsorder" id="newsorder" runat="server" value="0" style="width: 71px" />*</td>
    </tr>
    <tr>
      <td align="right" class="title01"  style="width: 20%">是否显示：</td>
      <td align="left"><asp:CheckBox ID="visible" runat="server" Checked="true" />*</td>
    </tr>
   <tr>
      <td align="right" class="title01"  style="width: 20%">是否推荐：</td>
      <td align="left"><asp:CheckBox ID="isnew" runat="server" Checked="true" />*</td>
    </tr>
    <tr>
      <td align="right" class="title01"  style="width: 20%">文章作者：</td>
      <td align="left"><input name="author" id="author" runat="server" /></td>
    </tr>
    <tr>
      <td align="right" class="title01"  style="width: 20%">日期：</td>
      <td align="left"><input type="text" name="updatetime"  style="behavior:url('../../LWDP.HTC');" value="<%=times %>" /></td>
    </tr>
    
    <!--tr>
      <td align="right" class="title01"  style="width: 20%">作者email：</td>
      <td align="left"><input name="email" id="email" runat="server" /></td>
    </tr>
    <tr>
      <td align="right" class="title01"  style="width: 20%">关键字：</td>
      <td align="left"><input name="keys" id="keys" runat="server" /></td>
    </tr-->
    <tr style="display:none;">
      <td align="right" class="title01"  style="width: 20%">外部链接：</td>
      <td align="left"><input name="newsurl" id="newsurl" value="http://" runat="server" /></td>
    </tr>
    <tr style="display:none;">
      <td align="right" class="title01"  style="width: 20%">上传文件：</td>
      <td align="left"><asp:TextBox ID="newsfile" runat="server"></asp:TextBox>
                    <input id="file1" type="file" runat="server" style="width: 191px" /><asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" /><br />或输入文件地址<input name="newsfileurl" id="newsfileurl" runat="server" /></td>
    </tr>
    <tr>
      <td align="right"  style="width: 20%">&nbsp;</td>
      <td height="50" align="left">
          <asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
      </tr>
  </table></td>
</tr>
</table>
    </div>
    </form>
</body>
</html>
